<?php
/**
 * True Gallery back-end rebuild template file
 *
 * @version 2.5
 * @author Alexey N. Brin (userxp@joomlaportal.ru)
 * @homepage http://truegallery.ru 
 * @filename admin.rebuild.tpl.php
 * @package True Gallery
 * @copyright (C) 2008-2009 by joomlatune.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 * 
 * THIS GALLERY is an EVOLUTION of AkoGallery -> PonyGallery -> DatsoGallery
 *
 * If you fork this to create your own project, 
 * please make a reference to True Gallery someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 *
 **/

defined('_VALID_MOS') or defined('_JEXEC') or die('Direct Access to this location is not allowed.');


?>
<!--table class="adminheading">
	<tr><th class="tg_adminheader tg_rebuild"><?php echo JText::_('TG_THUMB_REBUILD_TITLE'); ?></th></tr>
</table-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="adminform">
	<!--tr><th colspan="2"><?php echo JText::_('TG_THUMB_REBUILD_INFO'); ?></th></tr-->
	<tr>
		<!--td width="20%">
			<div align="center">
				<img src="<?php echo $imgprev; ?>" style="<?php echo $ad_imgstyle; ?>" alt="" />
			</div>
		</td-->
		<td width="80%">
			<form action="<?php echo TRUE_INDEX2; ?>&view=rebuild&task=start" name="adminForm" method="post">
				<fieldset>
					<legend><?php echo JText::_('TG_THUMB_REBUILD_TITLE'); ?></legend>
					<?php echo JText::_ ( 'TG_THUMB_REBUILD_DESCRIPTION' ); ?>
					<strong><?php echo JText::_ ( 'TG_THUMBS_IS' ); ?>&nbsp;&nbsp;</strong>
					<?php 
					echo is_writable( $imgpath ) ? '<b><font color="green">' . JText::_('TG_WRITEABLE'). '</font></b><br /><br />' . $clist['catgs'] . '' : '<b><font color="red"> ' . JText::_ ( 'TG_UNWRITEABLE' ) . '</font></b><br /><br />'; 
					?>
					<input type="hidden" name="option" value="<?php echo TG_CMP; ?>" />
					<input type="hidden" name="task" value="start" />
					<input type="hidden" name="view" value="rebuild" />
					<input type="submit" name="startdgrebuild" value="<?php echo JText::_('TG_BEGIN'); ?>" class="button" />
				</fieldset>
			</form>
		</td>
	</tr>
</table>